<div id="sidebar">
			
			<!-- Search -->
			<div class="box search">
				<h2>Search by <span></span></h2>
				<div class="box-content">
					<form action="" method="post">
						
						<label>Keyword</label>
						<input type="text" class="field" />
						
						<label>Category</label>
						<select class="field">
							<option value="">-- Select Category --</option>
							<?
			$qr2 = "select * from categories where cat_status='1' order by cat_name";
			$exec2 = mysql_query($qr2) or die($qr2);
			while($rslt2 = mysql_fetch_array($exec2))
			{
			?>
			<option value="<?=$rslt2['cat_id']?>"><?=$rslt2['cat_name']?></option>
			<? } ?>
							
						</select>
						
						<div class="inline-field">
							<label>Price</label>
							<select class="field small-field">
								<option value="">$10</option>
							</select>
							<label>to:</label>
							<select class="field small-field">
								<option value="">$50</option>
							</select>
						</div>
						
						<input type="submit" class="search-submit" value="Search" />
						
						<p>
							<a href="#" class="bul">Advanced search</a><br />
							<a href="#" class="bul">Contact Customer Support</a>
						</p>
	
					</form>
				</div>
			</div>
			<!-- End Search -->
			
			<!-- Categories -->
			<div class="box categories">
				<h2>Categories <span></span></h2>
				<div class="box-content">
					<ul>
					
					<?
			$qr = "select * from categories where cat_status='1' order by cat_name";
			$exec = mysql_query($qr) or die($qr);
			while($rslt = mysql_fetch_array($exec))
			{
			?>
					    <li><a href="#"><?=$rslt['cat_name']?></a></li>
				<? } ?>	    
					    <!--<li class="last"><a href="#">Category 13</a></li>-->
					</ul>
				</div>
			</div>
			<!-- End Categories -->
			
		</div>